package com.wsoft.query.rules;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author z001
 * @Date 2024/10/16 13:17
 */
@Data
public class CodeRulesBaseQuery {

    @NotBlank(message = "编码不能为空")
    @Schema(description = "编码")
    private String code;

    @NotBlank(message = "名称不能为空")
    @Schema(description = "名称")
    private String name;

    @Schema(description = "是否可修改")
    private String isModified;

    @NotNull(message = "类型不能为空")
    @Schema(description = "类型")
    private Integer type;

    @Schema(description = "类名(全路径)")
    private String className;

    @Schema(description = "参数json")
    private String params;

    @Schema(description = "编码长度")
    private Integer length;

    @Schema(description = "规则json")
    private String rules;
}
